home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-1.iso / virus / scni227e.zip / INSTALL.DAT < prev    next >
Text File  |  1995-11-06  |  5KB  |  207 lines

  1. /*
  2.  * Install Script for VirusScan
  3.  * Version: 2.2.5 Scan for DOS
  4.  * Build:  1
  5.  * Updated:  11/07/95  Dmitri Orlov
  6.  * Updated:  08/30/95  Dmitri Orlov
  7.  * Updated:  07/14/95  Dmitri Orlov
  8.  * Revised:  05/17/95  Kenny Liang
  9.  */
  10.  
  11. @DefineProject
  12.     @Name = "VirusScan"
  13.     @Version = "2.2"
  14.     @OutDrive = C
  15.     @Subdir = "\\MCAFEE"
  16.     @AssumeHardDisk = 1
  17. @EndProject
  18.  
  19.  
  20. @ClearOption(1001)
  21. @ClearOption(1002)
  22. @ClearOption(2001)
  23. @ClearOption(2002)
  24. @ClearOption(3001)
  25. @ClearOption(3002)
  26. @ClearOption(4001)
  27. @ClearOption(4002)
  28. @ClearOption(5000)
  29. @ClearOption(5001)
  30. @ClearOption(9000)
  31. @ClearOption(9001)
  32.  
  33. @DefineVars
  34.     @Drive @SCANDrive = C
  35.     @Dir @SCANDir = "\\MCAFEE\\VIRUSCAN"
  36. @EndVars
  37.  
  38. @Display
  39. @cls
  40.  
  41.           Welcome to McAfee VirusScan Installation!
  42.  
  43.  
  44.       This Install program will copy the VirusScan files to your
  45.          system and update your AUTOEXEC.BAT if you allow it.
  46.  
  47.  
  48.  
  49.           Thank you for purchasing McAfee VirusScan
  50.  
  51.  
  52.  
  53.  
  54.         Press Escape at any time to abort installation
  55.  
  56.      Copyright (c) 1994, 1995 McAfee Associates, Inc..  All right reserved.
  57.  
  58.  
  59.                        @Pause
  60. @EndDisplay
  61.  
  62. GetAll:
  63. @ClearOption(4001)
  64. @ClearOption(4002)
  65. @GetOutDrive @SCANDrive
  66.   @suppress(A)
  67.   @suppress(B)
  68.   @Cls
  69.              VirusScan Installation Drive
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.      This allows you to specify which hard disk or partition to install
  86.      the VirusScan files on.  This includes the program and documentation
  87.      files, along with the other companion files for the program.  The
  88.      next screen will allow you to specify which directory to install
  89.      VirusScan in.
  90. @EndOutDrive
  91.  
  92. @GetSubDir @SCANDir
  93.  In which directory of your @SCANDrive drive should all VirusScan files be installed?
  94.  
  95.  
  96. @EndSubDir
  97.  
  98. @If (@Exists("@SCANDrive:\\@SCANDir\\SCAN.EXE"))
  99.   @Goto Update
  100. @EndIf
  101. @If (@Exists("@SCANDrive:\\@SCANDir\\CLEAN.EXE"))
  102.   @Goto Update
  103. @EndIf
  104. @If (@Exists("@SCANDrive:\\@SCANDir\\VSHIELD.EXE"))
  105.   @Goto Update
  106. @EndIf
  107.  
  108. @Goto SCAN_OK
  109.  
  110. Update:
  111.   @GetOption
  112.   VirusScan appears to be installed in @SCANDrive:@SCANDir.
  113.   Do you wish to update the prior version?
  114.   @Option 4001 = "Yes, Update prior version"
  115.   @Option 4002 = "No,  Select another drive"
  116.   @EndOption
  117.   @If (4002 [= @Option) @Goto GetAll  @EndIf
  118.  
  119. SCAN_OK:
  120.  
  121.  
  122. @If (@Exists("C:\\AUTOEXEC.BAT"))
  123.   @GetOption
  124.             Update Your AUTOEXEC.BAT File
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.   To fully install VirusScan, a few changes should be made to your
  133.   AUTOEXEC.BAT file. Your PATH statement will be updated to include the
  134.   MCAFEE directory, and VShield statements will be added to allow VShield
  135.   to load each time you reboot your machine.
  136.  
  137.   Do you want Install to do this for you?
  138.     @Option 5000 = "Yes, Modify AUTOEXEC.BAT"
  139.     @Option 5001 = "No,  Save sample modification to MCAFEE.BAT"
  140.   @EndOption
  141. @else
  142. @display
  143.   The AUTOEXEC.BAT file cannot be found in your root directory.
  144.   Normal Installation would modify this file to load
  145.   VirusScan's VShield automatically when you reboot your machine
  146.  
  147.   A sample file is provided in @SCANDrive:@SCANDir\VSH.TXT
  148. @pause
  149. @enddisplay
  150. @EndIf
  151. @endif
  152.  
  153.  
  154. /*
  155.  * All information available now, go ahead and copy files
  156.  */
  157.  
  158. CompleteInstall:
  159.   @copy("C:\\AUTOEXEC.BAT","C:\\AUTOEXEC.MCF")
  160.   @If (@Exists("C:\\MCAFEE.BAT"))
  161.     @system("del C:\\MCAFEE.BAT > nul")
  162.   @endif
  163.   @system("echo REM >>  C:\\MCAFEE.BAT")
  164.   @system("echo REM This line loads McAfee VSHIELD >>  C:\\MCAFEE.BAT")
  165.   @system("echo @SCANDrive:@SCANDir\\VSHIELD >>  C:\\MCAFEE.BAT")
  166.   @system("echo REM >>  C:\\MCAFEE.BAT")
  167.   @system("type C:\\AUTOEXEC.BAT >> C:\\MCAFEE.BAT")
  168.   @system("echo REM >>  C:\\MCAFEE.BAT")
  169.   @system("echo REM This line reloads McAfee VSHIELD after your network and keyboard drivers >>  C:\\MCAFEE.BAT")
  170.   @system("echo @SCANDrive:@SCANDir\\VSHIELD /reconnect >>  C:\\MCAFEE.BAT")
  171.   @system("echo REM >>  C:\\MCAFEE.BAT")
  172.   @if (5001 [= @Option)
  173.   @else
  174.     @copy("C:\\MCAFEE.BAT","C:\\AUTOEXEC.BAT")
  175.     @setautoexec
  176.       @Overwrite
  177.       @path = "@SCANDrive:\\@SCANDir;"
  178.     @endautoexec
  179.     @copy("C:\\AUTOEXEC.BAT","C:\\MCAFEE.BAT")
  180.   @endif
  181.   
  182. @If (!(@Exists("@SCANDrive:\\@SCANDir")))
  183.   @MkDir ("@SCANDrive:\\@SCANDir")
  184. @EndIf
  185.  
  186. @MoveCStr(01,01,31," Copying VirusScan for DOS files... ")
  187. @Copy("SCAN.EXE","@SCANDrive:\\@SCANDir\\*.*")
  188. @Copy("SCAN.DAT","@SCANDrive:\\@SCANDir\\*.*")
  189. @Copy("NAMES.DAT","@SCANDrive:\\@SCANDir\\*.*")
  190. @Copy("CLEAN.DAT","@SCANDrive:\\@SCANDir\\*.*")
  191.   
  192. @DefineDisk
  193.     @Label = "Disk #1"
  194.     @BeginLib SCAN227.001
  195.         @F README.1ST @S 52487 @O @SCANDrive:\\@SCANDir\\README.1ST
  196.         @F VSHIELD.EXE @S 207491 @O @SCANDrive:\\@SCANDir\\VSHIELD.EXE
  197.         @F VSHLDCRC.EXE @S 45009 @O @SCANDrive:\\@SCANDir\\VSHLDCRC.EXE
  198.         @F MVTOOL10.EXE @S 40732 @O @SCANDrive:\\@SCANDir\\MVTOOL10.EXE
  199.         @F VSHEML.EXE @S 34055 @O @SCANDrive:\\@SCANDir\\VSHEML.EXE
  200.         @F VALIDATE.EXE @S 16326 @O @SCANDrive:\\@SCANDir\\VALIDATE.EXE
  201.         @F CHKVSHLD.EXE @S 18971 @O @SCANDrive:\\@SCANDir\\CHKVSHLD.EXE
  202.         @F WHATSNEW.TXT @S 7926 @O @SCANDrive:\\@SCANDir\\WHATSNEW.TXT
  203.         @F PACKING.LST @S 1509 @O @SCANDrive:\\@SCANDir\\PACKING.LST
  204.     @EndLib
  205. @EndDisk
  206.  
  207.